package com.example.xlzx.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.xlzx.entity.Appointment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.xlzx.entity.vo.AppointmentPageVo;

import java.util.List;

/**
 * <p>
 * 预约表 Mapper 接口
 * </p>
 *
 * @author 1
 * @since 2025-03-07
 */
public interface AppointmentMapper extends BaseMapper<Appointment> {

    Page<AppointmentPageVo> appointmentPage(Page<Appointment> pageParam, String phone);

    List<AppointmentPageVo> selectAllAppointment(Long userId);

    Page<AppointmentPageVo> appointmentDoctorPage(Long doctorId, Page<Appointment> pageParam);
}
